<template>

    <div class="login">
        <img src="../assets/img/booklogo.jpg">
        <form>
            <label class="actt">
                <span>账号:</span>
                <input type="text">
            </label>
            <label class="psw">
                <span>密码:</span>
                <input type="text">
            </label>
            <button class="login">登录</button>
            <router-link to="/register">
                <button class="regi">去注册</button>
            </router-link>
        </form>
        <router-link to="/index">
            <p>返回主页</p>
        </router-link>
    </div>
</template>
<style lang="less" scoped>
    p{
        position: absolute;
        bottom: 200px;
        left: 50%;
        transform: translateX(-50%);
        font-size: 14px;
        color: skyblue;
        font-weight: bold;
        border-bottom: 1px solid skyblue;
    }
        img{
            position: absolute;
            height: 100px;
            width: 100px;
            margin-left: 50%;
            transform: translateX(-50%);
            margin-top: 20px;
        }
        form{
        padding: 20px;
        display: flex;
        justify-items: center;
        flex-direction: column;
        justify-content: space-around;
        position: absolute;
        top: 30%;
        width: 100%;
        label{
            display: flex;
            margin-bottom: 20px;
            height: 40px;
            span{
                color:turquoise;
                font-weight: bold;
                font-size: 20px;
                
            }
            input{
                margin-left: 10px;
                border-bottom: 1px solid #ccc;
                width: 80%;
            }
        }
        button{
                width: 200px;
                background-color: turquoise;
                margin-left: 50%;
                transform: translateX(-50%);
                margin-bottom: 10px;
                height: 40px;
                border-radius: 10px;
                font-weight: bold;
                font-size: 16px;
                color: white;
            }
    }
    
</style>